<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="${cardPath}/images/css.css" rel="stylesheet" type="text/css">
<title>Insert title here</title>
<script type="text/javascript" language="javascript" src="${cardPath}/common/common.js"></script>
<style>
a:link {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;
}

a:visited {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;
}

a:hover {
	font-size: 12px;
	color: #FF0000;
	text-decoration: underline;
}

a:active {
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}
</style>
</head>
<body>
		<c:if test="${not empty vo}">
		<form action="clickVote.action"  method=post
						name=research >
		<table border="0" width="90%" cellspacing="2" cellpadding="2" align="center">				
					<tr>
						<th valign=top width="100%" colspan="2" align="left"> <span class="gg">问题：${vo.title}</span></th>
                    </tr>
                     <c:forEach items="${vo.answers}" var="ans" varStatus="status">
                     	<tr> 
                     	 <td width="10%">&nbsp;</td>
                     	 <td>
							<input style="border: 0" name="answerid"  type="radio" value="${ans.voteAnswerId}" 
							<c:if test="${status.index == 0 }"> checked </c:if>
							 />
							<span class="gg">${ans.content}</span>
						</td>
						</tr> 
			            </c:forEach>					
						
										
						<td width="100%" height=23 align=center colspan="3"><input type="image"
							border="0" name="submit" src="${cardPath}/images/vote1.gif"
							width="59" height="19" style="cursor:pointer" onClick="alert('谢谢您的参与！');">
				<img
							src="${cardPath}/images/vote.gif" width="59" height="19"  style="cursor:pointer" 
							border="0" onClick="window.open('voteResult.action','basket','menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=0,resizable=0,width=510,top=50,left=100,height=370');"/> </td>
					</tr>
					
				</table>
		</form>
		</c:if>
		<c:if test="${empty vo}">
		    <div style="font-size:12px;font-weight:bold;margin-top:50px">
				<center>暂时没有任何投票问题！</center>
			</div>
		</c:if>
</body>
</html>